<h2>Listing Stocktrans</h2>

<table class="table">
  <thead>
    <tr>
      <th>Doc no</th>
      <th>Trans date</th>
      <th>Price</th>
      <th>Price vat</th>
      <th>Vat</th>

      <th></th>
    </tr>
  </thead>
  <tbody>
<%= for stocktrans <- @stocktrans do %>
    <tr>
      <td><%= stocktrans.doc_no %></td>
      <td><%= stocktrans.trans_date %></td>
      <td><%= stocktrans.price %></td>
      <td><%= stocktrans.price_vat %></td>
      <td><%= stocktrans.vat %></td>

      <td class="text-right">
        <span><%= link "Show", to: stocktrans_path(@conn, :show, stocktrans), class: "btn btn-default btn-xs" %></span>
        <span><%= link "Edit", to: stocktrans_path(@conn, :edit, stocktrans), class: "btn btn-default btn-xs" %></span>
        <span><%= link "Delete", to: stocktrans_path(@conn, :delete, stocktrans), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
      </td>
    </tr>
<% end %>
  </tbody>
</table>

<span><%= link "New Stocktrans", to: stocktrans_path(@conn, :new) %></span>
